<?php

namespace App\Models\V1;


use Illuminate\Database\Eloquent\Factories\HasFactory;

class Coin extends BaseModel
{
    use HasFactory;
    protected $table="coin";
    protected $fillable=[
        'user_id',
        'user_name',
        'mobile',
        'community_id',
        'community_name',
        'goods_id',
        'goods_name',
        'integral',
        'fmimi',
        'bmimi',
        'leave',
        'num',
        'state'
    ];




    /**
     * 状态
     * @param $key
     * @return string
     */
    public function getStateAttribute($key)
    {
        return (string) $key;
    }



}
